home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 1
/
Merciful - Disc 1.iso
/
software
/
m
/
math_vision
/
mathvisionv2.1b.dms
/
mathvisionv2.1b.adf
/
README
/
Function_Compiler.doc
< prev
next >
Wrap
Text File
|
1992-02-14
|
2KB
|
44 lines
Notes on Fast Function Compiler, by Doug Houck, programmer
Sometimes the compiler cannot figure out what you mean. Then it gives
you one of the following messages at the bottom of the screen.
Too Many Operations Pending
Functions Too Large
You should not get these errors, but if you do, simplify your function,
and report the error.
Unknown Function
The compiler expected a function from the function list. (See Functions
in the Info menu) Either you misspelled it, were daydreaming about some
other programming language, or you put in an unknown character. For
example, you must spell out 'and,', not just put &. Note that function
names must be delimited by a space, ), or something.
Extra )
Missing )
Your parentheses must balance. Otherwise the compiler would not be sure
what you meant.
Not Enough Operands / Too Many Operators
Too Many Operands / Not Enough Operators
When the compiler got to this point, it realized it had a situation
like '3+2+' or '3+2 4'. In the first example, it doesn't know what to
do with the second plus sign. In the second example, compiler can't
use the 4. This error can also occur when you invoke a user-defined
function with the number of arguments indicated -
i.e. FA3(sin(x),y,sin(y)) and omit an argument i.e. FA3(sin(x),y).
PLEASE NOTE that the error is usually a ways back, NOT at the cursor
position.
Recursion is supported by the Fast Function Compiler. All passed values
and intermediate values are stored on the execution stack, so each new
invocation of a function gets it's own space. Variables A-Z are global.
When the bottom of the process stack is reached, it returns a value of
zero for the function. To increase the recursion stack, execute the CLI
command STACK to set the stack size to a larger value before running
MathVision.